<?php
namespace observer;

class LogObserver implements ObserverInterface
{

    public function doSomething(ObservableInterface $observable)
    {
        echo "{$observable->_name}通知：记录用户的登录日志~\n";
    }

}